import Vue from 'vue'
import 'normalize.css/normalize.css'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/styles/index.scss' // global css

import App from './App'

import store from './store'

// 1. 导入路由模块
import router from './router'

// 执行权限文件
import '@/icons' // icon
import '@/permission'
Vue.use(ElementUI)

Vue.config.productionTip = false

// render是把组件显示到页面中
// vue实例化
new Vue({
  el: '#app',
  // 2. 挂载路由模块
  router,
  store,
  render: h => h(App)
})
